﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace HelloXNA2.Component.MyCustom.FourPolygon
{
    public class FourPolygon
    {
        public const float scale = 3f;

        public static Vector3[] Corners = new Vector3[]
        {
            new Vector3( 0.5f * scale, (float)((-1) * Math.Sqrt(6) / 12) * scale, (float)((-1) * Math.Sqrt(3) / 6) * scale ),
            new Vector3( -0.5f * scale, (float)((-1) * Math.Sqrt(6) / 12) * scale, (float)((-1) * Math.Sqrt(3) / 6) * scale ),
            new Vector3( 0f * scale, (float)((-1) * Math.Sqrt(6) / 12) * scale, (float)(Math.Sqrt(3) / 3) * scale ),
            new Vector3( 0f * scale, (float)(Math.Sqrt(6) / 4) * scale ,0f * scale )
        };

        // 概率为 C(4,3) 我们会产生4个面
        public static int[][] Faces = new int[][]
        {
            new int[] { 0, 2,1 },
            new int[] { 1,3,0 },
            new int[] { 2,0, 3 },
            new int[] { 3, 1, 2 },
           
        };
    }
}
